package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.entity.Setmeal;
import com.itheima.entity.vo.SetmealVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional
public interface SetmealService {

    IPage<SetmealVo> getAll(String name, Integer page, Integer pageSize);

    boolean add(SetmealVo setmealVo);

    SetmealVo updateById(Long id);

    boolean update(SetmealVo setmealVo);

    boolean updateStatus(Integer status, List<Long> ids);

    boolean delete(List<Long> ids);

    List<Setmeal> getByCategoryId(Long id,String name);





}
